
package Componentes;

import java.awt.Component;
import javax.swing.JLabel;
import javax.swing.JSpinner;
import javax.swing.JTable;
import javax.swing.table.TableCellRenderer;


public class SpinnerRender  extends JLabel implements TableCellRenderer {

   

    public SpinnerRender() {
        setOpaque(true);
    }
    
    
    

   
    @Override
    public Component getTableCellRendererComponent(JTable table, Object color, boolean isSelected, boolean hasFocus, int row, int column) {
            JSpinner spin=new JSpinner();
            spin.setValue((Integer) table.getModel().getValueAt(row, column));
            return spin; 
    }

}


